<script>
	import conf from '@/utils/conf'
	export default {
		globalData: {
			cos: conf.pics,
			host: conf.host, // 后端
			env: 'release', // "trial: 体验版" | "release： 正式版",
			osName: 'windows', //ios、android、windows、mac、linux、harmonyos
			osVer: '10',
			appVer: '1.0.0',
			appName: '悦玺云商',
			toLeft: 320,
			maxLeft: true
		},
		onLaunch: function() {
			console.log('App Launch')
			let run = uni.getSystemInfoSync()
			// console.log('env->', run);
			this.globalData.osName = run.osName ?? 'windows'
			this.globalData.osVer = run.osVersion ?? ''
			this.globalData.appVer = run.appVersion ?? '1.0.0'
			if (process.env.NODE_ENV === 'development') {
				console.log('开发环境');
				this.globalData.env = 'dev';
				this.globalData.host = conf.dev_host;
			}

		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */


	@font-face {
		font-family: "AiDianFengYaHe";
		src: url("https://media-1335096253.cos.ap-chengdu.myqcloud.com/media/fonts/AiDianFengYaHe-2.ttf") format("truetype");
		font-weight: normal;
		font-style: normal;
	}

	.admin-font-yahe {
		font-family: "AiDianFengYaHe", sans-serif;
	}
</style>